package com.linsy.product.redis.mq.util;

import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.IdUtil;
import cn.hutool.core.util.RandomUtil;

public class IdBuilder {

    private IdBuilder() {
    }

    private static final Snowflake snowflake = IdUtil.getSnowflake(RandomUtil.randomInt());

    public static Long get() {
        return snowflake.nextId();
    }
}
